#pragma once
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_ttf.h"
#define HEIGHT 600
#define WITCH 800
#define GROUND 580
struct Point
{
	int x;
	int y;
};

class GameObject
{
protected:
	SDL_Rect bound;
	Point position;
	SDL_Surface* image;
public:
	GameObject(SDL_Surface * img, Point pos);
	virtual ~GameObject();
	virtual void Update();
	virtual void Draw(SDL_Surface*);
	void Move(int dx, int dy);
	SDL_Rect getBox();
	void SetPosition(Point pos);
	bool checkCollision(SDL_Rect eggshit, SDL_Rect ro);
};

